﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class EmployeeModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Required]
        public Guid EmployeeId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Required(ErrorMessage = "请输入姓名")]
        public string DisplayName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }
        /// <summary>
        /// 籍贯
        /// </summary>
        public string Hometown { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdentityNumber { get; set; }
        /// <summary>
        /// 人员类型
        /// </summary>
        public string EmployeeType { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        ///工号
        /// </summary>
        public string EmployeeNumber { get; set; }
        /// <summary>
        /// 岗位
        /// </summary>
        public string Post { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int  Age { get; set; }
        /// <summary>
        /// 复工日期
        /// </summary>
        public DateTime? ReworkDate { get; set; }
        /// <summary>
        /// 登录人
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 进退场状态 已进场/已退场
        /// </summary>
        public string EmployeeStatus { get; set; }
        /// <summary>
        /// 疫情追溯
        /// </summary>
        public YqzsModel Yqzs { get; set; }
        /// <summary>
        /// 人员照片
        /// </summary>
        public AttachmentModel EmployeeImage { get; set; }
    }
}
